package com.aerotechnic.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonProperty;

@Entity
@Table(name = "SPECIALITE")
public class Specialite extends GanttTask {
	
	@Column(name = "CODE")
	private String code;
	
	@JsonProperty("code")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "Specialite [code=" + code + ", intitule=" + intitule + ", id="
				+ id + "]";
	}

}
